package crazy.interfacee;

public class TestInherit
{
	public static void main(String[] args)
	{
		Bird b = new Bird();
		b.breath();
		b.fly();
		Wolf w = new Wolf();
		w.breath();
		w.run();
	}
}

class Animal
{
	private void beat()
	{
		System.out.println("beat");
	}
	
	public void breath()
	{
		beat();
		System.out.println("breath");
	}
}

class Bird extends Animal
{
	public void fly()
	{
		System.out.println("fly");
	}
}

class Wolf extends Animal
{
	public void run()
	{
		System.out.println("run");
	}
}